<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Relations\Concerns\AsPivot;

/**
 * App\Models\Pivot
 *
 * @property-read mixed $created_at
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel createdAtAfter($date)
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel createdAtBefore($date)
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel createdAtBetween($start, $end)
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel createdAtOfDay($data)
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel lastLoginTimeAfter($date)
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel lastLoginTimeBefore($date)
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel lastLoginTimeBetween($start, $end)
 * @method static \Illuminate\Database\Eloquent\Builder|Pivot newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Pivot newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Pivot query()
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel updatedAtAfter($date)
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel updatedAtBefore($date)
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel updatedAtBetween($start, $end)
 * @mixin \Eloquent
 * @property-read \Illuminate\Database\Eloquent\Collection|\Modules\Log\Entities\Activity[] $activities
 * @property-read int|null $activities_count
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel sizeAfter($data)
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel sizeBefore($data)
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel sizeBetween($start, $end)
 */
class Pivot extends BaseModel
{
    // pivot可以访问中间表字段
    use AsPivot;

    /**
     * Indicates if the IDs are auto-incrementing.
     *
     * @var bool
     */
    //    public $incrementing = false;

    /**
     * The attributes that aren't mass assignable.
     *
     * @var array
     */
    protected $guarded = [];
}
